/*
 * Display2D.h
 *
 *  Created on: 22.02.2011
 *      Author: Steffen Hempel und Marco Zeltwanger
 */

#ifndef DISPLAY2D_H_
#define DISPLAY2D_H_

#include <stdint.h>
#include "boolean.h"

#include "bitmap2D.h"

void Display2D_init();
void Display2D_refresh();



//void Display2D_setPixel(size_t x, size_t y, uint16_t r, uint16_t g, uint16_t b);
boolean Display2D_setPixel(uint8_t x, uint8_t y, uint16_t color);
boolean Display2D_setLED(uint8_t index, uint16_t color);
void Display2D_clear();
void Display2D_repaint();
void Display2D_fillAll(uint16_t color);

void Display2D_display2DBitmap(Dimension2D_t * origin, Dimension2D_t * size,uint16_t * addres,uint16_t * viewport);

boolean Display2D_print5x5Char(uint8_t index,uint16_t color,int32_t xPos, int32_t yPos);
boolean Display2D_print8x8Char(uint8_t index,uint16_t color,int32_t xPos, int32_t yPos);

void Display2D_displayIcon(uint16_t * iconData);

void Display2D_dravLine(int8_t x,int8_t y,int8_t dx,int8_t dy,uint16_t color );
#endif /* DISPLAY2D_H_ */
